<extend name="Layout:layout_dialog" />
<block name="body_main">
    <form action="{:U('role_edit_save')}" method="post" class="xsui-form">        
        <fieldset>
            <div class="xsui-form-field">
                <label>角色名称：</label>            
                <input type="text" name="title" placeholder="角色名称" required="required" value="{$data.title}"/>
            </div>
            <div class="xsui-form-field">
                <label>显示名称：</label>            
                <input type="text" name="display_title" placeholder="显示名称" value="{$data.display_title}"/>
                <span class="xsui-form-field-tip">如：组长可以显示为部长。 不填则默认与角色名称一致</span>
            </div>
            <div class="xsui-form-field">
                <label>角色代码：</label>            
                <input type="text" name="code" placeholder="角色代码" value="{$data.code}"/>
            </div>
            <div class="xsui-form-field">
                <label>备注：</label>            
                <input type="text" name="remark" placeholder="备注" value="{$data.remark}"/>
            </div>
            <div class="xsui-form-field">
                <label>状态：</label>
                <sohtml:radio name="status" items="1:正常;0:禁用" value="{$data.status|default=1}" />
            </div>
        </fieldset>
        <input type="hidden" name="id" value="{$data.id}" />
        <input type="hidden" name="site_id" value="{$data.site_id}"/>
        <button type="submit" class="ui-state-default"><i class="fa fa-save"></i>保存</button>
        <button type="reset" class="ui-state-default">重置</button>
    </form>  
</block>
